package com.lanyou.esb.common;


/**
 * 常量
 * 
 * @author 吴赵伟
 */
public final class ExceptionCode {
	// authentication message start=============================HttpHostConnectException
	public static final String MSG_HTTP_HOST_CONN_EXCE = "连接不到远程主机";
	public static final String CODE_HTTP_HOST_CONN_EXCE = "0040401";
	
	public static final String MSG_SOCKET_EXCE = "连接夽接字中断";
	public static final String CODE_SOCKET_EXCE = "004042";
	
	public static final String MSG_REQUEST_SECCESS = "服务请求成功";
	public static final String CODE_REQUEST_SECCESS = "000201";

	public static final String MSG_AUTHINFO_EMPTY = "认证信息为空";
	public static final String CODE_AUTHINFO_EMPTY = "000401";

	public static final String MSG_AUTHINFO_FORMATE_ERROR = "认证信息格式错误";
	public static final String CODE_AUTHINFO_FORMATE_ERROR = "000402";

	// access_token cann't be empty
	public static final String MSG_ACCESSTOKEN_EMPTY = "访问令牌为空";
	public static final String CODE_ACCESSTOKEN_EMPTY = "000403";

	public static final String MSG_ACCESSTOKEN_INVALID = "访问令牌错误";
	public static final String CODE_ACCESSTOKEN_INVALID = "000404";

	public static final String MSG_AUTHINFO_NOT_FOUND = "找不到相关的令牌信息";
	public static final String CODE_AUTHINFO_NOT_FOUND = "000405";

	// access_token apply date cann't be empty
	public static final String MSG_APPLYDATE_EMPTY = "令牌申请日期丢失，请重新申请令牌";
	public static final String CODE_APPLYDATE_EMPTY = "000406";

	// The invalid date of apply key cann't be empty
	public static final String MSG_APPLYKEY_EXPIRESIN_EMPTY = "密钥有效期丢失，请重新申请密钥";
	public static final String CODE_APPLYKEY_EXPIRESIN_EMPTY = "000407";

	// The period of access token cann't be empty
	public static final String MSG_ACCESSTOKEN_EXPIRESIN_EMPTY = "有效期丢失，请重新申请令牌";
	public static final String CODE_ACCESSTOKEN_EXPIRESIN_EMPTY = "000408";

	// the apply key is expired
	public static final String MSG_APPLYKEY_EXPIRED = "密钥已过期，请重新申请";
	public static final String CODE_APPLYKEY_EXPIRED = "000409";

	// the access_token is expired
	public static final String MSG_ACCESSTOKEN_EXPIRED = "令牌已过期，请重新申请";
	public static final String CODE_ACCESSTOKEN_EXPIRED = "000410";

	// the auth info not enough
	public static final String MSG_AUTHINFO_NOT_ENOUGH = "请提供完整令牌申请信息";
	public static final String CODE_AUTHINFO_NOT_ENOUGH = "000411";

	// over max apply times in one day
	public static final String MSG_OVER_MAX_APPLYTIMES = "超过日申请次数上限";
	public static final String CODE_OVER_MAX_APPLYTIMES = "0004012";

	// system code cann't be empty
	public static final String MSG_SYSTEMCODE_EMPTY = "接口编码不能为空";
	public static final String CODE_SYSTEMCODE_EMPTY = "000413";

	// interface code cann't be empty
	public static final String MSG_INTERFACECODE_EMPTY = "接口编码不能为空";
	public static final String CODE_INTERFACECODE_EMPTY = "000414";

	// apply key cann't be empty
	public static final String MSG_APPLYKEY_EMPTY = "密钥为空";
	public static final String CODE_APPLYKEY_EMPTY = "000415";

	// interface version cannot be empty
	public static final String MSG_INTERFACEVERSION_EMPTY = "接口版本不能为空";
	public static final String CODE_INTERFACEVERSION_EMPTY = "0000416";

	public static final String MSG_APPLYKEY_INVALID = "访问密钥错误";
	public static final String CODE_APPLYKEY_INVALID = "000417";

	public static final String MSG_APPLYKEY_DISABLE = "访问密钥未生效";
	public static final String CODE_APPLYKEY_DISABLE = "000418";

	public static final String MSG_AUTHINFO_FORMATE = "令牌或密钥信息格式不对，应当包含“-”";
	public static final String CODE_AUTHINFO_FORMATE = "000419";

	public static final String MSG_AUTH_TYPE_NOT_SUPPORT = "不支持这种认证类型";
	public static final String CODE_AUTH_TYPE_NOT_SUPPORT = "000420";

	public static final String MSG_NO_CALL_SYSTEM_EMPTY = "调用方系统编码为空";
	public static final String CODE_NO_CALL_SYSTEM_EMPTY = "000421";

	public static final String MSG_AUTH_SUCCESS = "认证成功";
	public static final String CODE_AUTH_SUCCESS = "000422";

	public static final String MSG_AUTH_FAILURE = "认证失败";
	public static final String CODE_AUTH_FAILURE = "000423";

	public static final String MSG_OVER_MAX_ACC_LIMIT = "超过最大请求次数";
	public static final String CODE_OVER_MAX_ACC_LIMIT = "000424";

	public static final String MSG_OTHER_EXCEPTION = "未知异常";
	public static final String CODE_OTHER_EXCEPTION = "000425";

	public static final String MSG_ALARM_TYPE = "告警类型";
	public static final String MSG_ALARM_LEVEL = "告警级别";

	public static final String MSG_NO_SYSTEM = "找不到接口所属系统";
	public static final String CODE_NO_SYSTEM = "000500";

	public static final String MSG_NO_CALL_SYSTEM = "找不到调用方系统";
	public static final String CODE_NO_CALL_SYSTEM = "000501";

	public static final String MSG_SYSTEM_DISABLE = "系统处于不可用状态，不能访问";
	public static final String CODE_SYSTEM_DISABLE = "000502";

	public static final String MSG_NO_INTERFACE = "找不到指定接口";
	public static final String CODE_NO_INTERFACE = "000503";

	public static final String MSG_NOT_ACCESABLE_IP = "该IP没有访问权限";
	public static final String CODE_NOT_ACCESABLE_IP = "000504";

	public static final String MSG_ISOLATION = "接口处于隔离状态，不能访问";
	public static final String CODE_ISOLATION = "000505";

	public static final String MSG_UNAUDITED = "接口处于未审核状态，不能访问";
	public static final String CODE_UNAUDITED = "000506";

	public static final String MSG_REJECT = "接口处于未驳回状态，不能访问";
	public static final String CODE_REJECT = "000507";

	public static final String MSG_IF_DISABLE = "接口处于不可用状态，不能访问";
	public static final String CODE_IF_DISABLE = "000508";

	public static final String MSG_IF_UNUSE = "接口处于停用状态，不能访问";
	public static final String CODE_IF_UNUSE = "000509";

	public static final String MSG_ABORT_REQUEST = "请求退出";
	public static final String CODE_ABORT_REQUEST = "000510";

	public static final String MSG_REQUEST_FAILURE = "服务请求失败";
	public static final String CODE_REQUEST_FAILURE = "0005011";

	public static final String MSG_REQUEST_TIMEOUT = "请求超时";
	public static final String CODE_REQUEST_TIMEOUT = "000512";

	public static final String MSG_NOSUCH_AUTH_MODETYPE = "没有这种认证类型";
	public static final String CODE_NOSUCH_AUTH_MODETYPE = "000513";

	public static final String MSG_NOSUCH_INTERFACE_TYPE = "没有这种接口类型";
	public static final String CODE_NOSUCH_INTERFACE_TYPE = "000514";

	public static final String MSG_TOKEN_DISABLE = "令牌处于不可用状态";
	public static final String CODE_TOKEN_DISABLE = "000515";
	// authentication message end =============================
	
	public static final String MSG_REQUEST_ROUTE_FAILD = "请求启动路由接口失败";
	public static final String CODE_REQUEST_ROUTE_FAILD = "000516";

}
